							<div class="box box-pad21 categories">
								<div class="accordion" id="accordion2">
                                <?php foreach ($category as $key => $val) { ?>
									<div class="accordion-group">
										<div class="accordion-heading">
											<a href="<?php echo base_url('category/lists/'.$val->category_id); ?>" class="accordion-toggle pull-left"><?php echo $val->category_name; ?></a> 
											<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse<?php echo $val->category_id; ?>">
												<b class="caret"></b></a>
										</div>
                                        <?php $child = $this->content_model->get_category_child($val->category_id); ?>
                                      
                                        
										<div id="collapse<?php echo $val->category_id; ?>" class="accordion-body collapse">
											<div class="accordion-inner">                                             
												<ul>
                                                <?php if(empty($child)){ ?>
                                                	<li>-----</li>
                                                <?php }else{ ?>
                                                <?php foreach ($child as $keyc => $valc) {?>
													<li><a href="<?php echo base_url('category/lists/'.$valc->category_id); ?>"><?php echo $valc->category_name; ?></a></li>
												<?php } ?>
                                                <?php } ?>
                                                </ul>
											</div>
										</div>
                                       
									</div>
                                <?php } ?>
								</div>
							</div>